
<?php
$this->pageTitle = $model->nombre;
Util::tsRegisterAssetJs("view.js");
Util::tsRegisterAssetJs("_form.js");
$baseThemeUrl = Yii::app()->theme->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile($baseThemeUrl . '/js/jquery.validateAjax.js');
Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/timeline-component.css');
?>
<script>
    var entidad_id = "<?php print $model->id; ?>";
</script>
<div class="row-fluid">
    <div class="span12">
        <h1  id = "nombre_cliente" class="name-title"><i  class="icon-rocket"></i> <?php echo $model->nombre ?></h1>

    </div>
</div>
<div class="row-fluid">
    <div class="span7">
        <div id="portlet_info">
            <?php $this->renderPartial('portlets/_info', array('model' => $model)); ?>
        </div>
        <?php $this->renderPartial('portlets/_cuentasCampanias', array('model' => $model, 'modelCampaniaOwner' => $modelCampaniaOwner,)) ?>

        <?php Util::checkAccess(array("action_nota_admin")) ? $this->renderPartial('portlets/_notas', array('model' => $model, 'archivos' => $archivos)) : ''; ?>

        <div class="widget">
            <div class="widget-title">
                <h4><i class="icon-tasks"></i> Actividades</h4>
                <span class="tools">
                    <a href="javascript:;" class="icon-chevron-down"></a>
                    <a href="javascript:;" class="icon-remove"></a>
                </span>
            </div>
            <div class="widget-body" >
                <div id="portlet_actividades" >
                    <?php
//                    $this->renderPartial('application.modules.actividades.views.actividad._actividades', array('model' => $model));
                    $this->renderPartial('portlets/_actividades', array('model' => $model));
                    ?>
                </div>
            </div>
        </div>
    </div>

    <div class="span5">
        <?php (Util::checkAccess(array('SUPERVISOR')) || (Yii::app()->user->isSuperAdmin)) ? $this->renderPartial('portlets/_operador', array('model' => $model)) : ''; ?>
        <?php (Yii::app()->user->isSuperAdmin) ? $this->renderPartial('portlets/_supervisor', array('model' => $model)) : ''; ?>
        <?php $this->renderPartial('portlets/_tareas', array('model' => $model)); ?>
        <?php $this->renderPartial('portlets/_tareasProgramadas', array('model' => $model)); ?>
    </div>
</div>